package com.atguigu.srb.sms.client.fallback;

import com.atguigu.srb.sms.client.CoreUserInfoClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 包名：com.atguigu.srb.sms.client.fallback
 *
 * @author Fun
 * 日期2021-11-09 14:11
 */
@Component
@Slf4j
public class CoreUserInfoClientFallback implements CoreUserInfoClient {

    @Override
    public Boolean checkMobile(String mobile) {
        log.error("远程调用失败，服务熔断");
        return true;
    }
}
